home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 2001 May / SGI Freeware 2001 May - Disc 1.iso / dist / fw_qt.idb / usr / freeware / include / qdrawutil.h.z / qdrawutil.h
C/C++ Source or Header  |  2001-04-12  |  4KB  |  136 lines

  1. /****************************************************************************
  2. ** $Id: qt/src/kernel/qdrawutil.h   2.3.0   edited 2001-01-26 $
  3. **
  4. ** Definition of draw utilities
  5. **
  6. ** Created : 950920
  7. **
  8. ** Copyright (C) 1992-2000 Trolltech AS.  All rights reserved.
  9. **
  10. ** This file is part of the kernel module of the Qt GUI Toolkit.
  11. **
  12. ** This file may be distributed under the terms of the Q Public License
  13. ** as defined by Trolltech AS of Norway and appearing in the file
  14. ** LICENSE.QPL included in the packaging of this file.
  15. **
  16. ** This file may be distributed and/or modified under the terms of the
  17. ** GNU General Public License version 2 as published by the Free Software
  18. ** Foundation and appearing in the file LICENSE.GPL included in the
  19. ** packaging of this file.
  20. **
  21. ** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
  22. ** licenses may use this file in accordance with the Qt Commercial License
  23. ** Agreement provided with the Software.
  24. **
  25. ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
  26. ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  27. **
  28. ** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
  29. **   information about Qt Commercial License Agreements.
  30. ** See http://www.trolltech.com/qpl/ for QPL licensing information.
  31. ** See http://www.trolltech.com/gpl/ for GPL licensing information.
  32. **
  33. ** Contact info@trolltech.com if any conditions of this licensing are
  34. ** not clear to you.
  35. **
  36. **********************************************************************/
  37.  
  38. #ifndef QDRAWUTIL_H
  39. #define QDRAWUTIL_H
  40.  
  41. #ifndef QT_H
  42. #include "qpainter.h"
  43. #include "qpalette.h"
  44. #include "qnamespace.h"
  45. #endif // QT_H
  46.  
  47. #ifndef QT_NO_DRAWUTIL
  48. //
  49. // Standard shade drawing
  50. //
  51.  
  52. Q_EXPORT
  53. void qDrawShadeLine( QPainter *p, int x1, int y1, int x2, int y2,
  54.              const QColorGroup &g, bool sunken = TRUE,
  55.              int lineWidth = 1, int midLineWidth = 0 );
  56.  
  57. Q_EXPORT
  58. void qDrawShadeLine( QPainter *p, const QPoint &p1, const QPoint &p2,
  59.              const QColorGroup &g, bool sunken = TRUE,
  60.              int lineWidth = 1, int midLineWidth = 0 );
  61.  
  62. Q_EXPORT
  63. void qDrawShadeRect( QPainter *p, int x, int y, int w, int h,
  64.              const QColorGroup &, bool sunken=FALSE,
  65.              int lineWidth = 1, int midLineWidth = 0,
  66.              const QBrush *fill = 0 );
  67.  
  68. Q_EXPORT
  69. void qDrawShadeRect( QPainter *p, const QRect &r,
  70.              const QColorGroup &, bool sunken=FALSE,
  71.              int lineWidth = 1, int midLineWidth = 0,
  72.              const QBrush *fill = 0 );
  73.  
  74. Q_EXPORT
  75. void qDrawShadePanel( QPainter *p, int x, int y, int w, int h,
  76.               const QColorGroup &, bool sunken=FALSE,
  77.               int lineWidth = 1, const QBrush *fill = 0 );
  78.  
  79. Q_EXPORT
  80. void qDrawShadePanel( QPainter *p, const QRect &r,
  81.               const QColorGroup &, bool sunken=FALSE,
  82.               int lineWidth = 1, const QBrush *fill = 0 );
  83.  
  84. Q_EXPORT
  85. void qDrawWinButton( QPainter *p, int x, int y, int w, int h,
  86.              const QColorGroup &g, bool sunken = FALSE,
  87.              const QBrush *fill = 0 );
  88.  
  89. Q_EXPORT
  90. void qDrawWinButton( QPainter *p, const QRect &r,
  91.              const QColorGroup &g, bool sunken = FALSE,
  92.              const QBrush *fill = 0 );
  93.  
  94. Q_EXPORT
  95. void qDrawWinPanel( QPainter *p, int x, int y, int w, int h,
  96.             const QColorGroup &, bool sunken=FALSE,
  97.             const QBrush *fill = 0 );
  98.  
  99. Q_EXPORT
  100. void qDrawWinPanel( QPainter *p, const QRect &r,
  101.             const QColorGroup &, bool sunken=FALSE,
  102.             const QBrush *fill = 0 );
  103.  
  104. Q_EXPORT
  105. void qDrawPlainRect( QPainter *p, int x, int y, int w, int h, const QColor &,
  106.              int lineWidth = 1, const QBrush *fill = 0 );
  107.  
  108. Q_EXPORT
  109. void qDrawPlainRect( QPainter *p, const QRect &r, const QColor &,
  110.              int lineWidth = 1, const QBrush *fill = 0 );
  111.  
  112.  
  113. //
  114. // Other obsolete drawing functions. 
  115. // Use QStyle::itemRect(), QStyle::drawItem() and QStyle::drawArrow() instead.
  116. //
  117.  
  118. Q_EXPORT
  119. QRect qItemRect( QPainter *p, Qt::GUIStyle gs, int x, int y, int w, int h,
  120.         int flags, bool enabled,
  121.         const QPixmap *pixmap, const QString& text, int len=-1 );
  122.  
  123. Q_EXPORT
  124. void qDrawItem( QPainter *p, Qt::GUIStyle gs, int x, int y, int w, int h,
  125.         int flags, const QColorGroup &g, bool enabled,
  126.         const QPixmap *pixmap, const QString& text,
  127.         int len=-1, const QColor* penColor = 0 );
  128.  
  129. Q_EXPORT
  130. void qDrawArrow( QPainter *p, Qt::ArrowType type, Qt::GUIStyle style, bool down,
  131.          int x, int y, int w, int h,
  132.          const QColorGroup &g, bool enabled );
  133.  
  134. #endif // QT_NO_DRAWUTIL
  135. #endif // QDRAWUTIL_H
  136.